using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DragonAwakening.Game.Creatures;

namespace DragonAwakening.Game
{
    /// <summary>
    /// Manages the monsters data.
    /// </summary>
    public static class CreatureManager
    {
        /// <summary>
        /// Monsters collection.
        /// </summary>
        private static Dictionary<short, Creature> creatures = new Dictionary<short, Creature>()
        {
            { 1, new Creature() { Id = 1, TextureId = "bear1", IsAggressive = true, Speed = new Core.Game.MaxValueData { Current = 6, Max = 6} } },
            { 2, new Wolf(2) }
        };

        /// <summary>
        /// Gets the creature information by id.
        /// </summary>
        public static Creature GetCreatureById(short creatureId)
        {
            Creature creature;
            CreatureManager.creatures.TryGetValue(creatureId, out creature);
            return creature;
        }
    }
}
